package com.example;

import com.example.view.TextView;
import com.example.view.View;

public class MyClass {

    public static void main (String[] args) {

        TextView textView = new TextView();
        textView.addOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick (View view) {
                System.out.println("了课件埃里克森的加分");
            }
        });
        textView.addOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick (View view) {
                System.out.println("第二个");
            }
        });

        textView.performClick();
    }

}
